package org.example;

import com.example.service.Hello;
import com.example.service.Say;
import com.example.util.M1Util;

import java.util.ServiceLoader;

/**
 * @author DuanXT
 * @date ${DATE} ${TIME}
 */
public class Main {
    public static void main(String[] args) {

        new M1Util();
        ServiceLoader<Say> says = ServiceLoader.load(Say.class);
        says.findFirst().get().talk();

        Hello hello = new Hello();


    }





}